package com.t.bricks.bussiness.db.entity.wares;

import com.t.bricks.bussiness.db.entity.wares.base.WaresBase;

/**
 * 商品信息'Wares'表扩展实体类
 * 注意:可根据需要创建不同的多个扩展实体类,而不是把所有的扩展属性都集中到一个类中
 * @author HuangXinBian
 */
public class Wares extends WaresBase {
	
	private static final long serialVersionUID = -1L;// 使用rmi时需修改

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return Wares
	 */
	public static Wares copy(Wares source) {
		if (null == source) {
			return null;
		}
		
		Wares target = new Wares();
		target.setsId(source.getsId());
		target.setsNo(source.getsNo());
		target.setsName(source.getsName());
		target.setsSimpleName(source.getsSimpleName());
		target.setsAlias(source.getsAlias());
		target.setsType(source.getsType());
		target.setiFreightSize(source.getiFreightSize());
		target.setsSource(source.getsSource());
		target.setsSpecification1(source.getsSpecification1());
		target.setsSpecification2(source.getsSpecification2());
		target.setsSpecification3(source.getsSpecification3());
		target.setsSpecification4(source.getsSpecification4());
		target.setsSpecification5(source.getsSpecification5());
		target.setsSpecification6(source.getsSpecification6());
		target.setsSpecification7(source.getsSpecification7());
		target.setsSpecification8(source.getsSpecification8());
		target.setsSpecification9(source.getsSpecification9());
		target.setiMinBuy(source.getiMinBuy());
		target.setiMaxBuy(source.getiMaxBuy());
		target.setmReferencePrice(source.getmReferencePrice());
		target.setmCurrentPrice(source.getmCurrentPrice());
		target.setmCouponPayMin(source.getmCouponPayMin());
		target.setmCouponPayMax(source.getmCouponPayMax());
		target.setiTallyPay(source.getiTallyPay());
		target.setiTallyLargess(source.getiTallyLargess());
		target.setiIsDangerous(source.getiIsDangerous());
		target.setiIsDadioactivity(source.getiIsDadioactivity());
		target.setiIsColdChain(source.getiIsColdChain());
		target.setsColdChainStandard(source.getsColdChainStandard());
		target.setsComposition(source.getsComposition());
		target.setiExpiryTime(source.getiExpiryTime());
		target.setsExpiryTimeText(source.getsExpiryTimeText());
		target.setiExpiryTimeMonth(source.getiExpiryTimeMonth());
		target.setiExpiryTimeDay(source.getiExpiryTimeDay());
		target.setiExpiryTimeHour(source.getiExpiryTimeHour());
		target.setiWarnTime(source.getiWarnTime());
		target.setsImage(source.getsImage());
		target.setiLockDuration(source.getiLockDuration());
		target.setsBuyArea(source.getsBuyArea());
		target.setdStart(source.getdStart());
		target.setdStop(source.getdStop());
		target.setsDeliveryConditions(source.getsDeliveryConditions());
		target.setsReturnsConditions(source.getsReturnsConditions());
		target.setsFreightRuleId(source.getsFreightRuleId());
		target.setsMemo(source.getsMemo());
		target.setsCreator(source.getsCreator());
		target.setdCreateDate(source.getdCreateDate());
		target.setsModifieder(source.getsModifieder());
		target.setdModifiedDate(source.getdModifiedDate());
		target.setiState(source.getiState());
		target.setiIndex(source.getiIndex());
		target.setiVersion(source.getiVersion());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return Wares
	 */
	@Override
	public Wares clone() {
		return copy(this);
	}
	
}
